import utils from "../utils/utils";
import request from '../utils/request';

//采购列表
export function eqBuyInfoList(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/eqBuyInfoList',
        method: 'post',
        data
    })
}

// 采购详情 
export function eqBuyInfoDetail(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/eqBuyInfoDetail',
        method: 'post',
        data
    })
}

//   设备型号列表
export function eqModelList(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/eqModelList',
        method: 'post',
        data
    })
}

//   设备列表
export function categoryList(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/categoryList',
        method: 'post',
        data
    })
}

// 设备新增型号
export function addEqModel(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/addEqModel',
        method: 'post',
        data
    })
}

// 开票状态变更 
export function setInvoiceState(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/setInvoiceState',
        method: 'post',
        data
    })
}

// 采购录入
export function addEqBuyInfo(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/addEqBuyInfo',
        method: 'post',
        data
    })
}

// 设备品牌列表
export function brandList(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/brandList',
        method: 'post',
        data
    })
}

// 根据设备获取设备型号和规格
export function getModelByEq(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/getModelByEq',
        method: 'post',
        data
    })
}

// 新增设备品牌
export function addBrand(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/addBrand',
        method: 'post',
        data
    })
}

// 设备型号详情
export function eqModelDetail(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/eqModelDetail',
        method: 'post',
        data
    })
}


// 设备型号可选状态修改
export function updEqOffer(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/updEqOffer',
        method: 'post',
        data
    })
}

// 设备型号修改
export function updEqModel(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/updEqModel',
        method: 'post',
        data
    })
}

// 配件信息列表
export function fittingList(data) {
    return request({
        url: '/configuration_system/v1_0_0/equipment/fittingList',
        method: 'post',
        data
    })
}

// 审批
export function approve(data) {
    return request({
        url: '/configuration_system/v1_0_0/apply/approve',
        method: 'post',
        data
    })
}

